package com.earstep.threadpool;

/**
 * 线程池配置属性基类
 * 
 * @author dxb
 * 
 */
public class ThreadJsonModel {
	/**
	 * 核心线程数 （默认打开的线程数量）
	 */
	private Integer corePoolSize;
	/**
	 * 最大线程数
	 */
	private Integer maximumPoolSize;
	/**
	 * 超过核心线程的线程最大空闲时间
	 */
	private long keepAliveTime;
	/**
	 * 线程池 队列 的最大值
	 */
	private Integer workQueueSize;

	/**
	 * 构造函数
	 * 
	 * @param corePoolSize
	 * @param maximumPoolSize
	 * @param keepAliveTime
	 * @param workQueueSize
	 */
	public ThreadJsonModel(Integer corePoolSize, Integer maximumPoolSize,
			long keepAliveTime, Integer workQueueSize) {
		super();
		this.corePoolSize = corePoolSize;
		this.maximumPoolSize = maximumPoolSize;
		this.keepAliveTime = keepAliveTime;
		this.workQueueSize = workQueueSize;
	}

	/**
	 * 构造函数
	 */
	public ThreadJsonModel() {
		super();
	}

	public Integer getCorePoolSize() {
		return corePoolSize;
	}

	public void setCorePoolSize(Integer corePoolSize) {
		this.corePoolSize = corePoolSize;
	}

	public Integer getMaximumPoolSize() {
		return maximumPoolSize;
	}

	public void setMaximumPoolSize(Integer maximumPoolSize) {
		this.maximumPoolSize = maximumPoolSize;
	}

	public long getKeepAliveTime() {
		return keepAliveTime;
	}

	public void setKeepAliveTime(long keepAliveTime) {
		this.keepAliveTime = keepAliveTime;
	}

	public Integer getWorkQueueSize() {
		return workQueueSize;
	}

	public void setWorkQueueSize(Integer workQueueSize) {
		this.workQueueSize = workQueueSize;
	}
}